/**
 * Created with Intellij IDEA
 * Description
 * User:ASUS
 * Date:2024-07-30
 * Time:20:46
 */
class PetDog{
    public String name;
    public String color;
    public void barks(){
        System.out.println(name+":汪汪汪");
    }
    public void wag(){
        System.out.println(name+"摇尾巴");
    }
}
public class Main {
    public static void main(String[] args) {
        PetDog dog=new PetDog();
        dog.name="阿黄";
        dog.color="黑";
        dog.barks();
        dog.wag();
    }
}
